/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const roleRouter = {
  path: '/role',
  component: Layout,
  redirect: '/role/role',
  name: 'Role',
  meta: {
    title: '权限管理',
    icon: 'lock'
  },
  children: [
    {
      path: 'role',
      component: () => import('@/views/role/role/index.vue'),
      name: 'Role',
      meta: { title: '角色管理' }
    },
    {
      path: 'permission',
      component: () => import('@/views/role/permission/index.vue'),
      name: 'Permission',
      meta: { title: '权限管理' }
    }/* ,
    {
      path: 'userAdmin',
      component: () => import('@/views/role/userAdmin/index.vue'),
      name: 'WhiteList',
      meta: { title: '用户管理员' }
    } */
  ]
}

export default roleRouter
